package com.ruicar.afs.cloud.apply.pre.loan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.apply.common.entity.ApplyCustAddressDetails;
import com.ruicar.afs.cloud.apply.pre.loan.condition.CustInfoCondition;

import java.util.List;

/**
 * 客户地址明细接口
 *
 * @author jihuigeng
 */
public interface ApplyCustAddressService extends IService<ApplyCustAddressDetails> {
    /**
     * 根据条件获取客户地址明细
     *
     * @param condition
     * @return
     */
    ApplyCustAddressDetails getCustAddress(CustInfoCondition condition);

    /**
     * 通过申请编号获取地址信息列表
     *
     * @param applyNo
     * @return
     */
    public List<ApplyCustAddressDetails> getCustAddressDetailsList(String applyNo);

    /**
     * 通过申请编号和客户ID获取地址信息列表
     *
     * @param applyNo
     * @param custId
     * @return
     */
    public List<ApplyCustAddressDetails> getCustAddressDetailsList(String applyNo, Long custId);

}
